//
//  UIColor+Extension.h
//  ChatForHot
//
//  Created by wr on 2018/10/9.
//  Copyright © 2018年 FLY. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Extension)

+ (nullable UIColor *)colorWithHexString:(NSString *)hexStr;
+ (nullable UIColor *)colorFromHexString:(NSString *)hexStr;
- (nullable NSString *)hexString;
- (nullable NSString *)hexStringWithAlpha;

- (CGFloat)red;
- (CGFloat)green;
- (CGFloat)blue;
- (CGFloat)alpha;
- (CGFloat)hue;
- (CGFloat)saturation;
- (CGFloat)brightness;
@end

NS_ASSUME_NONNULL_END
